<%@page import="java.util.*" errorPage="_Error.jsp"%>
<%@page import="DAL.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../Style/AddStyle.css"/>
<script type="text/javascript" src="/SPORT/Script/jquery-1.10.1.js"></script>
</head>
<body>
	<form action="/SPORT/MathHandle?type=3" method="post" class="Form">
		<table style=" margin:50px auto;"> 
	            <tbody>
			<tr><td>项目名称：</td><td><input type="text" name="MathName"  required /></td></tr>
			<tr><td>比赛时间：</td><td>
				<input type="date" name="MathDate" required style="width:130px;"  />
				<input type="time" name="MathTime"  required style="width:70px;" />
			</td></tr>
			<tr><td>比赛地点：</td><td><input type="text" name="MathLocation"  required /></td></tr>
			<tr><td>裁判姓名：</td><td>
				<select name="JudgeId">              		
	                		<%
	                			Judge judge=new Judge();
						List<Object> list=judge.getEntity();
	                			Object[] objList;
	                			for(int i=0;i<list.size();i++)
	                			{
	                				objList=(Object[])list.get(i);
	                				out.write("<option value='"+objList[0]+"'>"+objList[1]+"</option>");
	                			}
	                		 %>
	                	</select>
			</td></tr>
			<tr><td>排名方式：</td><td>
				<select name="MathTag" >
				     <option value="0">按时间排名</option>
				     <option value="1">按距离排名</option>
				</select>
			</td></tr>
	            </tbody>   
	            
	            <tfoot>
	                <tr><td><input type="submit" value="确定" id="btnSure"/></td><td><input type="reset" value="取消" id="btnCancel"/></td></tr>
	            </tfoot> 
	        </table>
       </form>
</body>
</html>
